package com.foreknow.demo2;

import java.util.Scanner;

public class ControllDemo3 {
    public static void main(String[] args) {
        System.out.println("请输入比赛成绩");
        Scanner inputTime = new Scanner(System.in);
        System.out.println("请输入运动员性别");
        Scanner inputSex = new Scanner(System.in);
        int playerTime = inputTime.nextInt();
        String playerSex = inputSex.nextLine();
        if (playerTime < 10){
            if (playerSex.equals("男")){
                System.out.println("恭喜该运动员进入男子组决赛");
            }else if (playerSex.equals("女")){
                System.out.println("恭喜该运动员进入女子组决赛");
            }
        }else {
            System.out.println("很遗憾，您没有进入决赛");
        }


    }
}
